package com.ffxnh;

import com.ffxnh.bean.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        User user = applicationContext.getBean("user", User.class);

        System.out.println(user);
        user.myCarDisplay();
    }
}
